package chapter4_6;

import java.util.Arrays;

/**
 * @author dmc
 */
public class HeapStackTest {
    public static void main(String[] args) {
// 对基本数据类型进行操作，不影响原想的值
//        int age = 10;
//        int age2 = 20;
//        System.out.println(age);
//        System.out.println(age2);
//        age2 = age;
//        age = 2;
//        System.out.println(age);
//        System.out.println(age2);
//
//        String a = "dmc真是太帅了！";
//        String b = "I love java ???";
//        System.out.println(a);
//        System.out.println(b);
//
//        b = a ;
//        System.out.println(a);
//        System.out.println(b);
//
//        a = "dmc 一定能在今年达到20k目标";
//        System.out.println(a);
//        System.out.println(b);

        System.out.println("----------------------------");


        int [] a = {1,2,3};
        int [] b = a;
        int [] c = a;
        System.out.println("a:" + Arrays.toString(a));
        System.out.println("b:" + Arrays.toString(b));
        b[0] = 8;
        System.out.println("a:" + Arrays.toString(a));
        System.out.println("b:" + Arrays.toString(b));
        System.out.println("c:" + Arrays.toString(c));



    }
}
